import { Injectable } from '@angular/core';
import {Observable} from 'rxjs/Observable';
import {DataService} from '../../../services/data.service';

@Injectable()
export class PublishMessageService {

  constructor(private dataService: DataService) { }
  /**
   * 上传信息
   * @returns {Observable<any>}
   */
  saveXinXi(parm): Observable<any> {
    return this.dataService.postData('/shangChuanXinXi', parm);
  }

  /**
   * 测
   * @returns {Observable<any>}
   */
  baoXinXi(parm): Observable<any> {
    return this.dataService.postData('/shangChuanXinXi', parm);
  }

}
